package com.pl.dao;  

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.pl.bean.ManageUserRoleBean;

/**
 * 
 */
public interface ManageUserRoleBeanDao {

	/**
	 * 新增
	 */
	public void addManageUserRoleBean(ManageUserRoleBean manageUserRoleBean);

	/**
	 * 修改
	 */
	public void updateManageUserRoleBean(ManageUserRoleBean manageUserRoleBean);
	
	/**
	 * 删除用户角色
	 */
	@Delete("delete from manage_user_role where manage_user_id = #{userId} and manage_role_id = #{roleId}")
	public void deleteUserRole(@Param("userId")long userId, @Param("roleId")long roleId);
	
	/**
	 * 根据条件获得数量
	 */
	public int getManageUserRoleBeanNum(ManageUserRoleBean manageUserRoleBean);
	
	/**
	 * 根据条件获得数据
	 */
	public List<ManageUserRoleBean> getManageUserRoleBean(ManageUserRoleBean manageUserRoleBean);

}
